package br.com.Atv04.chico;

public class Teste {

	public static void main(String[] args) {

		Funcionario f = new Funcionario();
		FuncionarioChefe fc = null;
		try {
			fc = new FuncionarioChefe("111", "112", 21, 2300, 4000, f);
		} catch (AssessorInvalido e) {
			System.out.println("teste 1");
//			e.printStackTrace();
		}
		
		try {
			System.out.println("Teste 5");
			fc.setAssessor(new Funcionario());
			System.out.println("teste 3");
			int[] x = {12, 20};
			System.out.println("Teste 8");
			x[-1] = 0;
			System.out.println("teste 7");
		} catch (AssessorInvalido e) {
			e.printStackTrace();
			System.out.println("teste 2" + e.getMessage());
//		} catch (ArrayIndexOutOfBoundsException a){
//			System.out.println("teste 9");
		} catch (Exception e) {
			System.out.println("teste 6");
		} finally {
			System.out.println("Teste 4");
		}
	}

}
